stl algorithms in action